/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package classcreator.abstractclasses;

/**
 *
 * @author Samus
 */
public class AbstractProperty {

    private EnumDataType type;
    private String collection;
    private boolean pk;
    private String name;

    public boolean isPk() {
        return pk;
    }

    public void setPk(boolean pk) {
        this.pk = pk;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public EnumDataType getType() {
        return type;
    }

    public void setType(EnumDataType type) {
        this.type = type;
    }

    public String getCollection() {
        return collection;
    }

    public void setCollection(String collection) {
        this.collection = collection;
    }

    @Override
    public String toString() {
        return "Property:" + getName() + " - Tipo:" + getType() + " - Pk?:" + isPk();
    }
}
